import yagmail


def send():
    yag=yagmail.SMTP(user='1708322425@qq.com',password='sfniswhfodkcbgdf',host='smtp.qq.com')
    yag.send(to='1708322425@qq.com',subject='龙果后台支付系统测试报告',contents='龙果后台支付系统测试报告',attachments=[''])
import yaml

def yaml_data(dizhi):
    with open(dizhi,'r',encoding='utf8') as f:
        return yaml.safe_load(f)

if __name__ == '__main__':

    print(yaml_data(r'D:\\ghs_pycharm\\longguo_payment_ui_auto_test\\Utils\\data.yaml'))